// File:		R6.h
// Authors:		Richard Burris, Joshua DOuty
// Purpose:		R6 header file
// Version:		5.5
// Date:		12/8/2011

//#include "mpx_supt.h"
//#include "R1.h"
//#include "R2.h"
//#include "R3.h"
//#include "R4.h"
//#include "R6.h"
//#include "COMHAND.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


typedef struct IOD{
char* name;
PCB_Pointer requestor;
int rType; 	//IDLE, READ, WRITE, CLEAR : Related to op_code in R3
char* tBuff; //related to R3's buffer_address
int* cBuff; //related to R3's count_address
IOD* next;
}IOD;
typedef struct IOD* IOD_Pointer;


typedef struct IOCB{
	int event_flag;//holds the event_flag for the device
	int count;//number of IOD's in the queue
	IOD_Pointer head;
	IOD_Pointer tail;	
}IOCB;
typedef struct IOCB* IOCB_Pointer;


//FUNCTIONS



void clean();
void cleanCom();
void comhand();
void console();
void date(char);
void directory(char);
void exit(char);
void intro();
void readHelp(char[]);
void version(char);
void comhander();
void loadCOMHAN();

//END R6.h
